#include<iostream>
using namespace std;
typedef long long LL;
int main()
{
	int n;
	cin >> n;
	LL ans = 1;
	for (int i = 1; i <= n; i++) {
		ans *= i;
	}
	cout << ans << endl;
	return 0;
}